package com.itheima.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.itheima.mapper.SysOperLogMapper;
import com.itheima.pojo.SysOperLog;
import com.itheima.service.SysLogService;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

/**
 * @version 1.0
 * @description 说明
 * @package com.itheima.service.impl
 */
@Service
public class SysLogServiceImpl extends ServiceImpl<SysOperLogMapper, SysOperLog> implements SysLogService {

    @Override
    @Async(value = "myThreadPoolExecutor")
    public void addLog(SysOperLog operLog) {
        save(operLog);
    }
}
